package org.logMonitor.entity;

/**
 * Created by lenovo on 2018/1/14.
 */
public class Rule {
    private int id;
    private boolean isValid;  //是否有效，区分“启动/禁用”
    private boolean isExist;  //是否存在，区分“删除与其他”
    private  String type;   //是源ip固定，还是目的ip固定  "yuan"/"mudi"
    private String src_ip;
    private String dst_ip;
    private String src_port;
    private String dst_port;
    private String pro;     //http报文
    private int userId;     //用户id

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean getIsValid() {
        return isValid;
    }

    public void setValid(boolean valid) {
        isValid = valid;
    }

    public boolean getIsExist() {
        return isExist;
    }

    public void setExist(boolean exist) {
        isExist = exist;
    }

    public String getSrc_ip() {
        return src_ip;
    }

    public void setSrc_ip(String src_ip) {
        this.src_ip = src_ip;
    }

    public String getDst_ip() {
        return dst_ip;
    }

    public void setDst_ip(String dst_ip) {
        this.dst_ip = dst_ip;
    }

    public String getSrc_port() {
        return src_port;
    }

    public void setSrc_port(String src_port) {
        this.src_port = src_port;
    }

    public String getDst_port() {
        return dst_port;
    }

    public void setDst_port(String dst_port) {
        this.dst_port = dst_port;
    }

    public String getPro() {
        return pro;
    }

    public void setPro(String pro) {
        this.pro = pro;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Rule{" +
                "id=" + id +
                ", isValid=" + isValid +
                ", isExist=" + isExist +
                ", type='" + type + '\'' +
                ", src_ip='" + src_ip + '\'' +
                ", dst_ip='" + dst_ip + '\'' +
                ", src_port='" + src_port + '\'' +
                ", dst_port='" + dst_port + '\'' +
                ", pro='" + pro + '\'' +
                ", userId=" + userId +
                '}';
    }
}
